/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Race American Indian Luiseno</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S15162 (C-0-T14914-S14915-S14916-S15162-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getRaceAmericanIndianLuiseno()
 * @model extendedMetaData="name='RaceAmericanIndianLuiseno'"
 * @generated
 */
public enum RaceAmericanIndianLuiseno implements Enumerator {
	/**
	 * The '<em><b>13318</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_13318_VALUE
	 * @generated
	 * @ordered
	 */
	_13318(0, "_13318", "1331-8"),

	/**
	 * The '<em><b>13326</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_13326_VALUE
	 * @generated
	 * @ordered
	 */
	_13326(1, "_13326", "1332-6"),

	/**
	 * The '<em><b>13334</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_13334_VALUE
	 * @generated
	 * @ordered
	 */
	_13334(2, "_13334", "1333-4"),

	/**
	 * The '<em><b>13342</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_13342_VALUE
	 * @generated
	 * @ordered
	 */
	_13342(3, "_13342", "1334-2"),

	/**
	 * The '<em><b>13359</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_13359_VALUE
	 * @generated
	 * @ordered
	 */
	_13359(4, "_13359", "1335-9"),

	/**
	 * The '<em><b>13367</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_13367_VALUE
	 * @generated
	 * @ordered
	 */
	_13367(5, "_13367", "1336-7"),

	/**
	 * The '<em><b>13383</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_13383_VALUE
	 * @generated
	 * @ordered
	 */
	_13383(6, "_13383", "1338-3"),

	/**
	 * The '<em><b>13375</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_13375_VALUE
	 * @generated
	 * @ordered
	 */
	_13375(7, "_13375", "1337-5");

	/**
	 * The '<em><b>13318</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>13318</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_13318
	 * @model literal="1331-8"
	 * @generated
	 * @ordered
	 */
	public static final int _13318_VALUE = 0;

	/**
	 * The '<em><b>13326</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>13326</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_13326
	 * @model literal="1332-6"
	 * @generated
	 * @ordered
	 */
	public static final int _13326_VALUE = 1;

	/**
	 * The '<em><b>13334</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>13334</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_13334
	 * @model literal="1333-4"
	 * @generated
	 * @ordered
	 */
	public static final int _13334_VALUE = 2;

	/**
	 * The '<em><b>13342</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>13342</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_13342
	 * @model literal="1334-2"
	 * @generated
	 * @ordered
	 */
	public static final int _13342_VALUE = 3;

	/**
	 * The '<em><b>13359</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>13359</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_13359
	 * @model literal="1335-9"
	 * @generated
	 * @ordered
	 */
	public static final int _13359_VALUE = 4;

	/**
	 * The '<em><b>13367</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>13367</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_13367
	 * @model literal="1336-7"
	 * @generated
	 * @ordered
	 */
	public static final int _13367_VALUE = 5;

	/**
	 * The '<em><b>13383</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>13383</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_13383
	 * @model literal="1338-3"
	 * @generated
	 * @ordered
	 */
	public static final int _13383_VALUE = 6;

	/**
	 * The '<em><b>13375</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>13375</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_13375
	 * @model literal="1337-5"
	 * @generated
	 * @ordered
	 */
	public static final int _13375_VALUE = 7;

	/**
	 * An array of all the '<em><b>Race American Indian Luiseno</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final RaceAmericanIndianLuiseno[] VALUES_ARRAY =
		new RaceAmericanIndianLuiseno[] {
			_13318,
			_13326,
			_13334,
			_13342,
			_13359,
			_13367,
			_13383,
			_13375,
		};

	/**
	 * A public read-only list of all the '<em><b>Race American Indian Luiseno</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<RaceAmericanIndianLuiseno> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Race American Indian Luiseno</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianLuiseno get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAmericanIndianLuiseno result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race American Indian Luiseno</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianLuiseno getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAmericanIndianLuiseno result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race American Indian Luiseno</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianLuiseno get(int value) {
		switch (value) {
			case _13318_VALUE: return _13318;
			case _13326_VALUE: return _13326;
			case _13334_VALUE: return _13334;
			case _13342_VALUE: return _13342;
			case _13359_VALUE: return _13359;
			case _13367_VALUE: return _13367;
			case _13383_VALUE: return _13383;
			case _13375_VALUE: return _13375;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private RaceAmericanIndianLuiseno(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //RaceAmericanIndianLuiseno
